/*
 * @Description:: 请补充填写
 * @Version: 1.0
 * @Author: 小白
 * @Date: 2022-04-12 09:13:06
 * @LastEditors: 小白
 * @LastEditTime: 2025-08-07 10:10:12
 * @FilePath: \tmsadmin\src\main.ts
 */

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import elementPlus from './plugins/element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { store, key } from './store'
import Icon from './components/icon.vue'
import Editor from './components/editor.vue'
// 加载全局样式
import 'animate.css'
import './styles/index.scss'

const app = createApp(App)
app.use(router)
app.use(Icon)
app.use(Editor)
app.use(store, key)
app.use(elementPlus)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.mount('#app')
